package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.CountBean;
import com.project.bean.ProductBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface IProductMapper extends BaseMapper<ProductBean> {
    /**
     * 销售统计
     * @param startDate 销售起始日期
     * @param endDate 销售结束日期
     * @return 统计集合
     */
    public List<CountBean> countSell(@Param("startDate") LocalDate startDate,
                                     @Param("endDate") LocalDate endDate);
}
